package com.bjsxt2.aop;

/**
 * Created by germmy on 17/5/27.
 */

import org.aspectj.lang.annotation.*;
import org.springframework.stereotype.Component;

@Component
public class LogInterceptor {

    public void before() {
        System.out.println("method staet");
    }
    public void after() {
        System.out.println("method after");
    }
    public void AfterReturning() {
        System.out.println("dao方法执行完了吧,嘿嘿");
    }
    public void AfterThrowing() {
        System.out.println("method AfterThrowing");
    }
}
